package com.newsee.remote.common.vo.ecommerce;

import java.util.List;

/**
 * @author liangzhi.chen
 * @description 京东返回商品价格vo
 * @date 2019/8/26 下午 02:55
 **/
public class JDSearchPriceVO {

    /**
     * success : true
     * resultMessage : 价格为null或者小于0时，为暂无报价
     * resultCode : 0000
     * result : [{"price":119.89,"skuId":100003507041,"jdPrice":140.21},{"price":119.89,"skuId":100003507047,"jdPrice":140.21},{"price":119.89,"skuId":100003507065,"jdPrice":140.21}]
     */

    private boolean success;
    private String resultMessage;
    private String resultCode;
    private List<ResultBean> result;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * price : 119.89
         * skuId : 100003507041
         * jdPrice : 140.21
         */

        private double price;
        private long skuId;
        private double jdPrice;

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public long getSkuId() {
            return skuId;
        }

        public void setSkuId(long skuId) {
            this.skuId = skuId;
        }

        public double getJdPrice() {
            return jdPrice;
        }

        public void setJdPrice(double jdPrice) {
            this.jdPrice = jdPrice;
        }
    }
}
